package com.qiyu.admin.system.service.impl;

import com.qiyu.admin.system.mapper.SessionMapper;
import com.qiyu.admin.system.model.QiYuSession;
import com.qiyu.admin.system.service.SessionService;
import com.qiyu.framework.base.BaseMapper;
import com.qiyu.framework.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * session实现类
 *
 * @author zhangqing
 * @date 2017年03月29日
 */
@Service
public class SessionServiceImpl extends BaseServiceImpl<QiYuSession> implements SessionService {
    @Resource
    private SessionMapper sessionMapper;
    @Override
    public BaseMapper getMapper() {
        return sessionMapper;
    }

    @Override
    public int selectOnlineCount() throws Exception {
        return sessionMapper.selectOnlineCount();
    }
}
